# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=starfighter
pkgver=2.4
pkgrel=0
pkgdesc="2D scrolling shooter game"
url="https://pr-starfighter.github.io/"
arch="all"
license="GPL-3.0-or-later"
makedepends="sdl2-dev sdl2_image-dev sdl2_mixer-dev sdl2_ttf-dev gettext-dev pango-dev"
subpackages="$pkgname-doc"
options="!check" # No testsuite
source="https://github.com/pr-starfighter/starfighter/releases/download/v$pkgver/starfighter-$pkgver-src.tar.gz"
builddir="$srcdir/starfighter-$pkgver-src"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--exec_prefix=/usr \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
3c31f74f878e7c438ee752e870556a2108d88b45544e5eb56ea49926986657d5ab13031e2ecd0973ecbaab29e61a1f3a79f1e34435287426aee8cc374c08136d  starfighter-2.4-src.tar.gz
"
